package com.x.ant.model;

import com.x.framework.annotation.MappingColumn;
import com.x.framework.annotation.MappingTable;
import com.x.framework.model.BaseObject;

@MappingTable(tableName = "DC_PART")
public class Part extends BaseObject {
    @MappingColumn(columnName = "PART_ID", columnPk = true)
    private Integer partId;

    @MappingColumn(columnName = "PART_NAME")
    private String partName;

    @MappingColumn(columnName = "LEVEL_ID")
    private Integer levelId;

    @MappingTable(tableName = "DC_LEVEL")
    private Level level;

    public Integer getPartId() {
        return partId;
    }

    public void setPartId(Integer partId) {
        this.partId = partId;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public Integer getLevelId() {
        return levelId;
    }

    public void setLevelId(Integer levelId) {
        this.levelId = levelId;
    }

    public Level getLevel() {
        return level;
    }

    public void setLevel(Level level) {
        this.level = level;
    }
}
